#region license
/*
 * Copyright (C) 2007 CchenSoft.com
 * 
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License 2.1 or later, as
 * published by the Free Software Foundation. See the included License.txt
 * or http://www.gnu.org/copyleft/lesser.html for details.
 * 
 * Author: Billy Zhang
 */
#endregion

using System;
using System.Collections.Generic;
using System.Text;
using CchenSoft.Portal.ImageGallery.Model;
using System.Collections;
using CchenSoft.Portal.Spi;

namespace CchenSoft.Portal.ImageGallery.Dao
{
    public interface IImageDao : IDao
    {
        IList Mappings { set; }

        int SaveImage(IGImage image, byte[] data);

        int SaveFolder(IGFolder folder);

        IList<IGFolder> GetSubFolders(int folderId);

        IList<IGImage> GetImagesByFolder(int folderId);

        byte[] GetImageData(int imageId);

        IGImage LoadImage(int imageId);

        IGFolder LoadFolder(int folderId);

    }
}
